//  Copyright (c) 2020-present,  INSPUR Co, Ltd.  All rights reserved.
// This source code is licensed under Apache 2.0 License.

#pragma once

#include "pure_mem/memoryblock/memory_arena/abstract_memory_arena.h"

namespace rocksdb {

class MemArenaIndex {
public:
    explicit MemArenaIndex() {};
    explicit MemArenaIndex(const InternalKeyComparator& mkeyCmp) {};
    virtual ~MemArenaIndex() {};

    virtual IMemoryArena* SeekForMemoryArena(const Slice &key) = 0;
    virtual bool Insert(const Slice& startKey, IMemoryArena* memoryArena) = 0;
};

}